'use strict';

module.exports = app => {
    const {
        DATE,
        STRING,
        INTEGER
    } = app.Sequelize;
    const news_list = app.model.define('news_list',{
        id:{
            type:INTEGER,
            primaryKey:true,
            autoIncrement:true,
            allowNull:false,
            comment:"消息列表ID"
        },
        sponsor:{
            type:STRING,
            defaultValue:null,
            comment:"发送人"
        },
        news_content:{
            type:STRING,
            defaultValue:null,
            comment:"消息内容"
        },
        send_date:{
            type:DATE,
            defaultValue:null,
            comment:"发送时间"
        },
        link_target:{
            type:STRING,
            defaultValue:null,
            comment:"链接目标"
        },
        mark_read:{
            type:STRING,
            defaultValue:null,
            comment:"标记已读"
        }
    })
    news_list.associate = function () {
        
    }
}